package com.ruoyi.web.controller.mall.orderComent.service.impl;

import com.ruoyi.web.controller.mall.orderComent.domain.OrderComent;
import com.ruoyi.web.controller.mall.orderComent.mapper.OrderComentMapper;
import com.ruoyi.web.controller.mall.orderComent.service.IOrderComentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 评价Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
@Service
public class OrderComentServiceImpl implements IOrderComentService 
{
    @Autowired
    private OrderComentMapper orderComentMapper;

    /**
     * 查询评价
     * 
     * @param id 评价ID
     * @return 评价
     */
    @Override
    public OrderComent selectOrderComentById(String id)
    {
        return orderComentMapper.selectOrderComentById(id);
    }

    /**
     * 查询评价列表
     * 
     * @param orderComent 评价
     * @return 评价
     */
    @Override
    public List<OrderComent> selectOrderComentList(OrderComent orderComent)
    {
        return orderComentMapper.selectOrderComentList(orderComent);
    }

    @Override
    public List<Map<String, Object>> queryOrderComentList(Map<String, Object> map) {
        return orderComentMapper.queryOrderComentList(map);
    }

    /**
     * 新增评价
     * 
     * @param orderComent 评价
     * @return 结果
     */
    @Override
    public int insertOrderComent(OrderComent orderComent)
    {
        return orderComentMapper.insertOrderComent(orderComent);
    }

    /**
     * 修改评价
     * 
     * @param orderComent 评价
     * @return 结果
     */
    @Override
    public int updateOrderComent(OrderComent orderComent)
    {
        return orderComentMapper.updateOrderComent(orderComent);
    }

    /**
     * 删除评价对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteOrderComentByIds(String[] ids)
    {
        return orderComentMapper.deleteOrderComentByIds(ids);
    }

    /**
     * 删除评价信息
     * 
     * @param id 评价ID
     * @return 结果
     */
    @Override
    public int deleteOrderComentById(String id)
    {
        return orderComentMapper.deleteOrderComentById(id);
    }
}
